package com.info.zhiduoduo.repository.entity.taxer;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *  发票项目信息
 * </p>
 *
 * @author bob
 * @since 2019-12-16
 */
@Data
@Accessors(chain = true)
@TableName("zdd_taxer_invoice_project")
public class TaxerInvoiceProject extends Model<TaxerInvoiceProject> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "projectid", type = IdType.AUTO)
    private Integer projectid;
    /**
     * 创客ID
     */
    private Integer userid;
    /**
     * 项目名
     */
    private String projectname;
    /**
     * 分类ID
     */
    private Integer categoryid;
    /**
     * 分类名
     */
    private String categoryname;
    /**
     * 项目周期
     */
    private Integer projectcycle;
    /**
     * 项目描述
     */
    private String projectintro;
    /**
     * 1.普票2专票
     */
    @TableField("invoice_type")
    private Integer invoiceType;
    /**
     * 发票内容
     */
    @TableField("invoice_content")
    private String invoiceContent;
    /**
     * 项目金额
     */
    @TableField("project_amount")
    private BigDecimal projectAmount;
	/**
	 * 逻辑删除 0：否 1：已删除
	 */
    @TableLogic
    private Integer deleted;
    private Date createtime;
    private Date updatetime;

    /**
     * 补录时间
     */
    @TableField("supplement_time")
    private Date supplementTime;

    /**
     * 是否是补录：0：不是，1.是
     */
    @TableField("whether_supplement")
    private Integer whetherSupplement;

    /**
     * 补录人员ID
     */
    @TableField("supplement_personnel")
    private Integer supplementPersonnel;

    @Override
    protected Serializable pkVal() {
        return this.projectid;
    }

}
